package com.itheima.Twice;

public class p02_Pi {
    public static void main(String[] args) {
        double pi =0;
        for (int i = 0; i < 1000; i++) {
            int d = 2*i+1;
            double t = (i%2==0)?1.0/d:-1.0/d;
            pi+=t;
        }
        System.out.println(pi*4);
        System.out.println("9"+6);
    }
}
